<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<ui:composition template="/templates/baseLayout.xhtml">
		<ui:define name="body">
			<section id="content">
				<h:form id="AdminConsoleForm">
					<h:panelGrid width="100%">
						<h:panelGrid styleClass="wrapper p1" columns="3" width="100%" columnClasses="threeColBlock,threeColBlock,threeColBlock">
							<h:panelGroup styleClass="row-1 thinGrayBorder threeColBlock" layout="block">
								<h3>Home Page Maintenance</h3>	
								<div id="adminConsole">
									<ul>
										<li><h:commandLink action="#{hmpCtrl.reset}" value="Reset Home Page" /></li>
										<li>
											<a4j:commandLink value="Manage Menu" onclick="#{rich:component('MenuMaintPopup')}.show();">
											</a4j:commandLink>
										</li>
										<li>
											<h:link outcome="/sec/hmp/groupMaint">Manage Groups</h:link>											
										</li>
										<li><h:link outcome="/sec/hmp/groupMaint" rendered="false">Manage RSS Feeds</h:link></li>
										<li style="display:none;"><a href="#">Customize Theme</a></li>
										<li><a href="#">Manage Advertisements</a></li>										
									</ul>
								</div>
							</h:panelGroup>
							<h:panelGroup styleClass="row-1 threeColBlock thinGrayBorder" layout="block">
								<h3>Catalog Maintenance</h3>	
								<div id="adminConsole">
									<ul>
										<li>
											<a4j:commandLink value="Add New Make / Model / Style" action="#{ctlCtrl.prepareCatalog}"
												oncomplete="#{rich:component('CatalogPopup')}.show();">												 
											</a4j:commandLink>
										</li>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/ctl/catalogList.jsf">Manage Catalog</a></li>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/ctl/featuresList.jsf">Manage Features</a></li>												
									</ul>
								</div>
							</h:panelGroup>
							<h:panelGroup styleClass="row-1 threeColBlock thinGrayBorder" layout="block">
								<h3>User Maintenance</h3>	
								<div id="adminConsole">
									<ul>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/dlr/dealerProfile.jsf">Manage Dealer Profile</a></li>
										<li>
											<a href="#{facesContext.externalContext.requestContextPath}/sec/usm/userEdit.jsf?userId=#{authorizedUser.userInfoId}">Update Personal Profile</a>											
										</li>
										<li>
											<a href="#{facesContext.externalContext.requestContextPath}/sec/usm/userEdit.jsf">Add New User</a>
										</li>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/usm/userList.jsf">Manage Users</a></li>																		
									</ul>
								</div>
							</h:panelGroup>
							<h:panelGroup styleClass="row-1 threeColBlock thinGrayBorder" layout="block">
								<h3>Inventory Maintenance</h3>	
								<div id="adminConsole">
									<ul>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/inv/invEdit.jsf?carId=0">Add a Car</a></li>
										<li><a href="#{facesContext.externalContext.requestContextPath}/pub/inv/invList.jsf">Manage Cars</a></li>										
									</ul>
								</div>
							</h:panelGroup>
							<h:panelGroup styleClass="row-1 threeColBlock thinGrayBorder" layout="block">
								<h3>Category Management</h3>	
								<div id="adminConsole">
									<ul>
										<li><a href="#">Add New Category</a></li>
										<li><a href="#">Manage Categories</a></li>																		
									</ul>
								</div>
							</h:panelGroup>
							<h:panelGroup styleClass="row-1 threeColBlock thinGrayBorder" layout="block">
								<h3>Role Maintenance</h3>	
								<div id="adminConsole">
									<ul>
										<li>
											<a4j:commandLink value="Add New Role" oncomplete="#{rich:component('RolePopup')}.show();">
												 <f:param name="roleId" value="0"/>
											</a4j:commandLink>
										</li>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/rom/roleList.jsf">Manage Roles</a></li>
										<li>
											<a4j:commandLink value="Add New Privilege" oncomplete="#{rich:component('PrivPopup')}.show();">
												 <f:param name="privId" value="0"/>
											</a4j:commandLink>
										</li>
										<li><a href="#{facesContext.externalContext.requestContextPath}/sec/rom/privList.jsf">Manage Privileges</a></li>																		
									</ul>
								</div>
							</h:panelGroup>
						</h:panelGrid>
						<h:panelGrid styleClass="wrapper p1" columns="2" width="100%">
							<h:panelGroup styleClass="row-2 twoColBlock thinGreenBorder" layout="block">
								<h3>Inventory Statistics</h3>	
								<div id="adminConsole">
									<ul>
										<li><a href="#">Cars Most Viewed</a></li>
										<li><a href="#">Cars Most Sold</a></li>
										<li><a href="#">Cars Most Profitable</a></li>																			
									</ul>
								</div>
							</h:panelGroup>
							<h:panelGroup styleClass="row-2 twoColBlock thinGreenBorder" layout="block">
								<h3>Customer Requests</h3>	
								<div id="adminConsole">
									<ul>
										<li><a href="#">Loan Applications</a></li>
										<li><a href="#">Car Inquiries</a></li>
										<li><a href="#">Find Car Requests</a></li>																																				
									</ul>
								</div>
							</h:panelGroup>						
						</h:panelGrid>						
					</h:panelGrid>					
				</h:form>			
				<ui:include src="/sec/hmp/menuMaint.xhtml"></ui:include>
				<ui:include src="/sec/rom/privEdit.xhtml"></ui:include>
				<ui:include src="/sec/rom/roleEdit.xhtml"></ui:include>
				<ui:include src="/sec/ctl/catalogEdit.xhtml"></ui:include>						
			</section>			
		</ui:define>
	</ui:composition>
</html>		